#include <vector>
#include <iostream>
#include <fstream>
#include <algorithm>

using namespace std;

int main(int argc, char const *argv[])
{
    vector<int> array{1, 2, 3, 4, 5, 6};
    vector<int> tmp;

    tmp.insert(tmp.end(),array.begin(),array.begin() + 3);
    tmp.insert(tmp.end(),array.begin() + 4,array.end());
    
    for (int n : tmp){
        cout<<n<<" ";
    }
    cout<<endl;
    
    return 0;
}
